package com.easyUploader.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.common.mybaits.CustomPage;
import com.easyUploader.entity.dao.Bucket;
import com.easyUploader.entity.dto.BucketDto;
import com.easyUploader.entity.dto.FileDto;
import com.easyUploader.entity.vo.BucketVo;
import com.easyUploader.property.LocalFileProperty;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 大忽悠
 * @since 2022年11月01日
 */
@Service
public interface IBucketService extends IService<Bucket> {

    Boolean create(BucketVo bucketVo);

    List<BucketDto> list(CustomPage customPage);

    Boolean delete(Integer id);

    Bucket getBucketByName(String bucket);

    List<FileDto> listFileInfo(String bucketName, String dir, CustomPage customPage);

    Boolean setBucketType(Integer id, Integer type);

}
